<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <th>用户名</th>
        <th>电话号码</th>
        <th>电子邮箱</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    <tr th:each="user,userSttus : ${userList}">
        <td th:text="${user.userName}"></td>
        <td th:text="${user.phoneNumber}"></td>
        <td th:text="${user.email}"></td>
        <td th:text="${user.password}"></td>
        <td>
<!--            注意相对路径和绝对路径-->
            <a th:href="@{/user/preModifyUser/{userName}(userName=${user.userName})}">修改</a>
            <a th:href="@{/user/deleteUser/{userName}(userName=${user.userName})}">删除</a>
        </td>
    </tr>
</table>

</body>
</html>